<html>
<head>
<title>Configuring Reportico - System Parameters</title>
<link rel="stylesheet" type="text/css" href="../media/style.css">
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
    <td width="100%">
			<table width="100%" height="78" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" id="topnav">
			<tr>
				<!-- Header Side -->
				<td width="17">
					<img height="78" src="media/reportico100.png"/>
				</td>
				<td align="right"></td>
				<td align="center">
					<table width="100%" height="60" border="0" align="left" cellpadding="0" cellspacing="0">
						<tr>
							<td valign="top" align="left">
							<img src="media/repbanner.png"/></td>
							</td>
						</tr>
						<tr>
							<td align="center" valign="bottom" class="topmenucell">
								<nobr>
								&nbsp;
								</nobr>
							</td>
						</tr>
					</table>
				</td>
				<td width="103" class="toplogincell">
					&nbsp;
				</td>
			</tr>
			</table>
</td>
  </tr>
  <!--tr>
    <td class="header_top">reportico</td>
  </tr-->
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td class="header_menu">
  		  [ <a href="../classtrees_reportico.html" class="menu">class tree: reportico</a> ]
		  [ <a href="../elementindex_reportico.html" class="menu">index: reportico</a> ]
		  [ <a href="../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="200" class="menu">
      <b>Packages:</b><br />
              <a href="../li_reportico.html">reportico</a><br />
            <br /><br />
		<b>Tutorials/Manuals:</b><br />
					<strong>Package-level:</strong>
							<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.pkg.html">Reportico Tutorial And User Manual</a>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.manual.pkg.html">Reportico User Manual</a>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.quickstart.pkg.html">Reportico Installation</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.gettingstarted.pkg.html">Getting Started</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.structure.pkg.html">Reportico Installation Structure</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.using.pkg.html">Configuring Reportico - System Parameters</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.embedding.pkg.html">Embedding Reportico</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.security.pkg.html">Reportico Security</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.language.pkg.html">Language Support</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.projects.pkg.html">Projects</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.importlink.pkg.html">Importing and linking from reports</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.menus.pkg.html">Report Menus</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.prepare.pkg.html">Report Preparation and Execution</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.design.pkg.html">Report Design Mode</a>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.format.pkg.html">The Design Format Menu</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.customcode.pkg.html">Custom Source Code</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.qrydet.pkg.html">The Query Details Menu</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.assign.pkg.html">The Assignments Menu</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.criteria.pkg.html">The Criteria Menu</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.output.pkg.html">The Output Menu</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.webservices.pkg.html">Turning Reports into Web Services (currently unavailable)</a>
</ul>
</li></ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.faq.pkg.html">Reportico FAQ</a>
</ul>
</li></ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.howto.pkg.html">Reportico Tutorial</a>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.tutorial1.pkg.html">Tutorial No.1 - The Film Listing Report</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.tutorial1_1.pkg.html">Tutorial 1 Stage 1 - Creating a basic report</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.tutorial1_2.pkg.html">Tutorial 1 Stage 2 - Creating User Entry Criteria</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.tutorial1_3.pkg.html">Tutorial 1 Stage 3 - Working with expressions using assignments</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.tutorial1_4.pkg.html">Tutorial 1 Stage 4 - Working with groups</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.tutorial1_5.pkg.html">Tutorial 1 Stage 5 - Including database graphics into the report and generating drilldowns</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.tutorial2_1.pkg.html">Tutorial 2 - Creating the loan history report</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.tutorial3_1.pkg.html">Tutorial 3 - The Monthly Returns Report</a>
</ul>
<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.tutorial4_1.pkg.html">Tutorial 4 - The Late Returns Summary report</a>
</ul>
</li></ul>
</li></ul>

							<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.appendix1.pkg.html">Appendix 1 - Reportico Project Configuration parameters</a>
</ul>

							<ul>
	<li type="square"><a href="../reportico/tutorial_reportico.appendix2.pkg.html">Appendix 2 - Reportico URL request parameters</a>
</ul>

									                        <b>Files:</b><br />
      	  <div class="package">
			<a href="../reportico/_reportico.php.html">		reportico.php
		</a><br>
	  </div><br />
      
                </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10%" align="left" valign="bottom"><a href=
"../reportico/tutorial_reportico.structure.pkg.html">Prev</a></td>
<td width="80%" align="center" valign="bottom"></td>
<td width="10%" align="right" valign="bottom"><a href=
"../reportico/tutorial_reportico.embedding.pkg.html">Next</a></td>
</tr>
</table>
<span><a name="faq.using"></a><h2 class="title">Configuring Reportico - System Parameters</h2><a name="using.reporticoparameters"></a><h3 class="title">Configuring Reportico</h3><p>Reportico is designed to run reports either as a standalone report designer or for embedding in your own web sites. Reports can be invoked directly vis web links.
There are several ways reportico can be configured. 
      <ul><li><p>By running standalone reportico and passing URL parameters to control what reports to run etc</p></li>
          <li><p>By creating a custom standalone copy of the runner script ( copying the run.php file described below ) and setting runtime parameters to control user rights, to pass external paramters to reports ( such as user logins etc ), to turn off and on certain report output. See the run.php script below for more details</p></li>
          <li><p>By embedding reportico within your web pages and utilising the same parameters mentioned in the run.php script to control the appearance and operation of reportico, but customised to work within your web page</p></li></ul></p><hr />
    <a name="using.howtostart"></a><h3 class="title">Running Reportico reports by specifying URL parameters</h3><p>As you can see, once you have created some reports you can access them from the Administration page by pointing your browser at the index.php file in the Reportico directory. However you can also access reports more directly by specifying the relevant information as part of the URL. For example you can :-
      <ul><li><p>Directly access a report project menu</p></li>
          <li><p>Run a report specifying all report criteria and the output format in the URL</p></li>
          <li><p>With JSON and XML output format you can effectively turn your report suite into a web API</p></li>
          <li><p>Guide users directly to specified report without going through the menu, allowing you to build your own menu front end to reports</p></li>
          <li><p>Embed reportico and report output within your web pages</p></li>
          <li><p>Run Reportico from a Linux command line (using for example wget) , allowing you to save reports and email them to recipients</p></li></ul></p>
<p>In order to achieve the above,  you need to point your browser at the <strong>run.php</strong> in your Reportico area
and provide various parameters 
    to identify which project you want to run 
    and what mode  - menu mode (the default), report preparation/criteria entry mode or design
    mode. To generate report output you need to specify the report xml file name, the report output format ( HTML, PDF, CSV, JSON, XML ) and also the criteria.
    criteria and output format (HTML, PDF, CSV) within the URL. 
	Exampes follow below but a list of available parameters is provided in <a href="../reportico/tutorial_reportico.appendix2.pkg.html">Appendix 2 - Reportico URL request parameters</a>.</p>
<p>Below find examples of simple
    common options for running Reportico from the browser :-</p><p>To run
    a report menu for a project which is restricted by a password,
    enter:</p><p><code><pre>
    http://{HOST}/{REPORTICO_DIR}/run.php?execute_mode=MENU&amp;project={PROJECTCODE}&amp;project_password={PASSWORD}
</pre></code></p><p>To
    run a specific report in criteria entry
    mode:</p><p><code><pre>
    http://{HOST}/{REPORTICO_DIR}/run.php?execute_mode=PREPARE&amp;
                           project={PROJECTCODE}&amp;xmlin={REPORT}.xml
</pre></code></p>
    <p>To generate HTML output for a report. 
    :</p><p><code><pre>
    http://{HOST}/{REPORTICO_DIR}/run.php?execute_mode=EXECUTE&amp;
                          project={PROJECTCODE}&amp;xmlin={REPORT}.xml&amp;
                          target_format=HTML
</pre></code></p>
    <p>To generate XML output for a report - just change the XML to PDF, CSV or JSON for those formats 
    :</p><p><code><pre>
    http://{HOST}/{REPORTICO_DIR}/run.php?execute_mode=EXECUTE&amp;
                          project={PROJECTCODE}&amp;xmlin={REPORT}.xml&amp;
                          target_format=XML
</pre></code></p>
    <p>To generate HTML output for, for example,  all invoices from 1st August 2011 to Today for raised for customers living in London or Paris you might do:- 
    :</p><p><code><pre>
    http://{HOST}/{REPORTICO_DIR}/run.php?execute_mode=EXECUTE&amp;
                          project={PROJECTCODE}&amp;xmlin={REPORT}.xml&amp;
                          target_format=HTML&amp;MANUAL_daterange_FROM=2011-08-01&amp;MANUAL_daterange_TO=TODAY%MANUAL_city=London,Paris
</pre></code></p>
<p>To
    Run a specific report in design
    mode in a password unprotected project:</p><p><code><pre>
http://{HOST}/{REPORTICO_DIR}/run.php?execute_mode=MAINTAIN&amp;
                           project={PROJECTCODE}&amp;xmlin={REPORT}.xml
</pre></code></p><hr />

    <a name="using.execmodes"></a><h3 class="title">Execution Modes</h3><p>Reportico may be run in one
    of 4 modes as specified with the execute_mode URL parameter
    :-</p><p><ol><li><p><strong>MENU</strong></p><p>Presents the
    report menu for the desired project. Uses the <strong>menu.php</strong> file found within
    the project area for the menu definitions and menu
    title.</p></li><li><p><strong>PREPARE</strong></p><p>Runs a report
    in preparation/criteria entry mode. It is in this mode that the user selects report
    criteria and can then generate the report output in the desired format.
    Also, if enabled, the user can enter report design mode from the prepare
    screen. Running an existing report requires that the project name and the
    report XML definition file is passed. If no report name is passed then the
    new report definition will be used.</p>
    <p>It is this mode that is entered when you select one of the rpeorts from a menu.</p></li><li><p><strong>MAINTAIN</strong></p><p>Runs the report in
    design mode. It is in this mode that all the report configuration can be
    maintained. Reports can be created, modified and stored. Here reports are configured by entry of SQL data access queries, 
    formatting, criteria, groups, graphs etc. Again the project and report
    definition must be
    provided to enter this mode directly.</p></li><li><p><strong>EXECUTE</strong></p><p>This is
    report output generation mode. The report switches to this mode when the
    user presses the <strong>Execute</strong> button in Prepare mode. To run a report directly
    in this mode,  the project and report definition file must be provided
    as well as the output method (HTML,PDF etc) as well as any other output options. See the example above
     and <a href="../reportico/tutorial_reportico.appendix2.pkg.html">Appendix 2 - Reportico URL request parameters</a>.</p></li></ol></p><hr />

    <a name="using.runners"></a><h3 class="title">Customising Reportico - The Reportico run.php script</h3><p>When you run Reportico in standalone mode ( i.e. not embedded in another script ) you will, by default,  be running reportico via the run.php script. This script creates an instance of reportico and allows Reportico to run in your browser. Within this script there are several parameters than can control Reportico's behaviour, such as:-
      <ul><li><p>Specifying what mode ( report menu, criteria, report output ) to start in</p></li>
          <li><p>Specifying what access web user has ( Single report output, single report crtieria entry, project menu or full access to admin functions</p></li>
          <li><p>Hiding some of reportico's user interface elements to simplify the screen</p></li>
          <li><p>Specfying external parameters that can be included in report queries - such as user logins, session parameters etc</p></li>
          <li><p>Specifying an SQL query to generate report output from without having to create a specific report</p></li>
          <li><p>Specifiying whether to run using bootstrap or classic stylings</p></li>
          <li><p>Specifying which charting engine to use</p></li>
          <li><p>Specifying whether to turn on dynamic sortable/searchable grids</p></li>
          <li><p>Specifying menu definitions ( dropdown and static )</p></li></ul></p>
<p>To customise Reportico you can just edit the run.php to set system parameters, or you can copy this script for each of the different ways you want to call Reportico. You can create copies outside of the main Reportico folder but be sure to modify the line which includes reportico to set its fully pathed location.
If you do copy this script then, depending on the parameters you have configured, it will probably be necessary to uncomment the line:-
    <code><pre>
        $q-&gt;reportico_ajax_script_url = $_SERVER[&quot;SCRIPT_NAME&quot;];
</pre>
Do not uncomment this if embedding reportico in within other web content.</code>
When embedding reportico in another script or page, you generally copy the contents of this run.php script into your web content, set the embedded_report property to true and set the correctly include the fully pathed reportico.php file remotely and then set whatever parameters you want to control what project, reports and output options you want to offer the user. Note that if you are experimenting with different properties, every time you want to see their effect it may be necessary to pass the url parameter <strong>clear_session=1</strong> to your calling script as some parameters are only brought into effect upon initial execution and session creation. See below on this page for details of how to embed Reportico.</p>
<p>Also if you are embedding reportico in different scripts it is a good idea to use a namespace in each place, so that if you swap between them in a browser session they dont interfere with each other.</p>
<p>The runner looks as follows :-</p>
<p><code><pre>
&lt;?php
/*
 Reportico - PHP Reporting Tool
 Copyright (C) 2010-2014 Peter Deed

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

 * File:        run.php
 *
 * Reportico runner script
 *
 * @link http://www.reportico.org/
 * @copyright 2010-2013 Peter Deed
 * @author Peter Deed &lt;info@reportico.org&gt;
 * @package Reportico
 * @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @version $Id: run.php,v 1.24 2014/05/17 12:39:08 peter Exp $
 */

    // set error reporting level
	error_reporting(E_ALL);

    // Set the timezone according to system defaults
    date_default_timezone_set(@date_default_timezone_get());

    // Reserver 100Mb for running
	ini_set(&quot;memory_limit&quot;,&quot;100M&quot;);

    // Allow a good time for long reports to run. Set to 0 to allow unlimited time
	ini_set(&quot;max_execution_time&quot;,&quot;90&quot;);

    // Include Reportico - for embedding reportico in a script running from outside the Reportico directory, 
    // just include the full path to the file reportico.php
	//require_once('&lt;FULL_PATH_TO_REPORTICO&gt;/reportico.php');
	require_once('reportico.php');

    // Only turn on output buffering if necessary, normally leave this uncommented
	//ob_start();

	$q = new reportico();

    // In design mode, allow sql debugging
	//$q-&gt;allow_debug = true;

    // Specify any URL parameters that should be added into any links generated in Reportico.
    // Useful when embedding in another application or frameworks where requests need to be channelled
    // back though themselves
	//$q-&gt;forward_url_get_parameters = &quot;&quot;;

    // Reportico Ajax mode. If set to true will run all reportico requests from buttons and links
    // through AJAX, meaning reportico will refresh in its own window and not refresh the whole page
    //$q-&gt;reportico_ajax_mode = true;

    /*
    ** Initial execution states .. allows you to start user and limit user to specfic
    ** report menus, reports or report output
    ** The default behaviour is to show the Administration page on initial startup
    */

    // Start user in specific project
    //$q-&gt;initial_project = &quot;&lt;project&gt;&quot;;          

    // If starting user in specific project then project passweord is required if one exists
    // and you dont want user to have to type it in
    //$q-&gt;initial_project_password = &quot;&lt;project password&gt;&quot;;

    // Specify a report to start user in specify the xml report file in the specified project folder
    //$q-&gt;initial_report = &quot;reportfile.xml&quot;;

    // Specify whether user is started in administration page, project menu, report criteria entry, 
    // report output or report design mode, use respectively ( &quot;ADMIN&quot;, &quot;u$q-&gt;get_execute_mode(), true);ENU&quot;, &quot;PREPARE&quot;, &quot;EXECUTE&quot;, &quot;MAINTAIN&quot;)
    // default is &quot;ADMIN&quot;
    //$q-&gt;initial_execute_mode = &quot;&lt;MODE&gt;&quot;;

    // When only executing a report, indicates what format it should be showed in .. HTML(the default), PDF or CSV
    //$q-&gt;initial_output_format = &quot;HTML&quot;;

    // When initial mode is report criteria entry or execution, these set the flags for whether report detail, group hears, columns headers
    // etc are to be show. For example you might only want to run a report and show the graphs, by default all show except criteria
    //$q-&gt;initial_show_detail = &quot;show&quot;;
    //$q-&gt;initial_show_graph = &quot;show&quot;;
    //$q-&gt;initial_show_group_headers = &quot;show&quot;;
    //$q-&gt;initial_show_group_trailers = &quot;show&quot;;
    //$q-&gt;initial_show_column_headers = &quot;show&quot;;
    //$q-&gt;initial_show_criteria = &quot;show&quot;;

    // Set default output style - TABLE = one row per record, FORM = one page per record
    //$q-&gt;initial_output_style = &quot;TABLE&quot;;

    // Set source SQL to generate report from, without requirement for report , requires an initial_project to be defined for connection details
    //$q-&gt;initial_sql = &quot;SELECT column1 AS columntitle1, column2 AS columntitle2 FROM table&quot;;

    // Specify access mode to limit what user can do, one of :-
    // FULL - the default, allows user to log in under admin/design mode and design reports
    // ALLPROJECTS - allows entry to admin page to select project  but no ability to logon in admin/designer mode
    // ONEPROJECT - allows entry to a single project and no access to the admin page
    // ONEREPORT - limits user to single report, crtieria entry and report execution ( requires initial project/report )
    // REPORTOUTPUT - executes a report and allows to &quot;Return&quot; button to crtieria entry ( requires initial project/report )
    //$q-&gt;access_mode = &quot;&lt;MODE&gt;&quot;;

    // Default initial execute mode to single report output if REPORTOUTPUT mode specified
    if ( $q-&gt;access_mode == &quot;REPORTOUTPUT&quot; )
        $q-&gt;initial_execute_mode = &quot;EXECUTE&quot;;

    // The session namespace to use. Only relevant when showing more than one report in a single page. Specify a name
    // to store all session variables for this instance and then when running another report instance later in the script 
    // use another name
    //$q-&gt;session_namespace = &quot;namespace&quot;;

    // Current user - when embedding reportico, you may wish to run queries by user. In this case
    // set the current user here. Then you can use the construct {FRAMEWORK_USER} within your queries
	//$q-&gt;external_user = &quot;&lt;CURRENT USER&gt;&quot;;

    // Indicates whether report output should include a refresh button
    //$q-&gt;show_refresh_button = false;

    // Set to true if you are embedding in another report
    $q-&gt;embedded_report = false;

    // Specify an alternative AJAX runner from the stanfdard run.php
    //$q=&gt;reportico_ajax_script_url = $_SERVER[&quot;SCRIPT_NAME&quot;];


    // If you want to connect to a reporting database whose connection information is available in the calling
    // script, then you should configure your project connection type to &quot;framework&quot; using the configure project link
    //and then you can pass your connection info here
    //define('SW_FRAMEWORK_DB_DRIVER','pdo_mysql');
    //define('SW_FRAMEWORK_DB_USER', '&lt;USER&gt;');
    //define('SW_FRAMEWORK_DB_PASSWORD','PASSWORD');
    //define('SW_FRAMEWORK_DB_HOST', '127.0.0.1'); // Use ip:port to specifiy a non standard port
    //define('SW_FRAMEWORK_DB_DATABASE', '&lt;DATABASENAME&gt;');

    // For passing external user parameters, can be referenced in SQL with {USER_PARAM,parameter_name}
    // and can be referenced in custom SQL with $this-&gt;user_parameters
    //$q-&gt;user_parameters[&quot;your_parameter_name&quot;] = &quot;your parameter value&quot;;

    // Jquery already included?
    //$q-&gt;jquery_preloaded = false;

    // Bootstrap Features
    // Set bootstrap_styles to false for reportico classic styles, or &quot;3&quot; for bootstrap 3 look and feel and 2 for bootstrap 2
    // If you are embedding reportico and you have already loaded bootstrap then set bootstrap_preloaded equals true so reportico
    // doestnt load it again.
    $q-&gt;bootstrap_styles = &quot;2&quot;;
    $q-&gt;bootstrap_preloaded = false;

    // Engine to use for charts .. 
    // HTML reports can use javascript charting, PDF reports must use PCHART
    //$q-&gt;charting_engine = &quot;PCHART&quot;;
    //$q-&gt;charting_engine_html = &quot;NVD3&quot;;

    // Whether to turn on dynamic grids to provide searchable/sortable reports
    // $q-&gt;dynamic_grids = true;
    // $q-&gt;dynamic_grids_sortable = true;
    // $q-&gt;dynamic_grids_searchable = true;
    // $q-&gt;dynamic_grids_paging = false;
    // $q-&gt;dynamic_grids_page_size = 10;

    // Generate report definition from SQL  and set some column / report attributes
    // Also the full report definition can be built up programmatically
    // which requires further doicumentation
    //$q-&gt;importSQL(&quot;&quot;SELECT column1 AS columntitle1, column2 AS columntitle2 FROM table&quot;;
    //$q-&gt;get_column(&quot;column1&quot;)-&gt;set_attribute(&quot;column_display&quot;,&quot;hide&quot;);
    //$q-&gt;get_column(&quot;column1&quot;)-&gt;set_attribute(&quot;column_title&quot;,&quot;Custom Title&quot;);
    //$q-&gt;set_attribute(&quot;ReportTitle&quot;,&quot;New Report Title&quot;);

    // Show or hide various report elements
    //$q-&gt;output_template_parameters[&quot;show_hide_navigation_menu&quot;] = &quot;show&quot;;
    //$q-&gt;output_template_parameters[&quot;show_hide_dropdown_menu&quot;] = &quot;show&quot;;
    //$q-&gt;output_template_parameters[&quot;show_hide_report_output_title&quot;] = &quot;show&quot;;
    //$q-&gt;output_template_parameters[&quot;show_hide_prepare_section_boxes&quot;] = &quot;show&quot;;
    //$q-&gt;output_template_parameters[&quot;show_hide_prepare_pdf_button&quot;] = &quot;show&quot;;
    //$q-&gt;output_template_parameters[&quot;show_hide_prepare_html_button&quot;] = &quot;show&quot;;
    //$q-&gt;output_template_parameters[&quot;show_hide_prepare_print_html_button&quot;] = &quot;show&quot;;
    //$q-&gt;output_template_parameters[&quot;show_hide_prepare_csv_button&quot;] = &quot;show&quot;;
    //$q-&gt;output_template_parameters[&quot;show_hide_prepare_page_style&quot;] = &quot;show&quot;;

    // Static Menu definition
    // ======================
    // identifies the items that will show in the middle of the project menu page.
    // If not set will use the project level menu definitions in project/projectname/menu.php
    // To have no static menu ( for example if you just want to use a drop down then set to empty array )
    // To define a static menu, follow the example here.
    // report can be a valid report file ( without the xml suffix ).
    // If title is left as AUTO then the title will be taken form the report definition
    // Use title of BLANKLINE to separate items and LINE to draw a horizontal line separator

    //$q-&gt;static_menu = array (
	    //array ( &quot;report&quot; =&gt; &quot;an_xml_reportfile1&quot;, &quot;title&quot; =&gt; &quot;&lt;AUTO&gt;&quot; ),
	    //array ( &quot;report&quot; =&gt; &quot;another_reportfile&quot;, &quot;title&quot; =&gt; &quot;&lt;AUTO&gt;&quot; ),
	    //array ( &quot;report&quot; =&gt; &quot;&quot;, &quot;title&quot; =&gt; &quot;BLANKLINE&quot; ),
	    //array ( &quot;report&quot; =&gt; &quot;anotherfreportfile&quot;, &quot;title&quot; =&gt; &quot;Custom Title&quot; ),
	    //array ( &quot;report&quot; =&gt; &quot;&quot;, &quot;title&quot; =&gt; &quot;BLANKLINE&quot; ),
	    //array ( &quot;report&quot; =&gt; &quot;andanother&quot;, &quot;title&quot; =&gt; &quot;Another Custom Title&quot; ),
	//);

    // To auto generate a static menu from all the xml report files in the project use
    //$q-&gt;static_menu = array ( array ( &quot;report&quot; =&gt; &quot;.*\.xml&quot;, &quot;title&quot; =&gt; &quot;&lt;AUTO&gt;&quot; ) );
    
    // To hide the static report menu
    //$q-&gt;static_menu = array ();

    // Dropdown Menu definition
    // ========================
    // Menu items for the drop down menu
    // Enter definition for the the dropdown menu options across the top of the page
    // Each array element represents a dropdown menu across the page and sub array items for each drop down
    // You must specifiy a project folder for each project entry and the reportfile definitions must point to a valid xml report file
    // within the specified project
    //$q-&gt;dropdown_menu = array(
    //                array ( 
    //                    &quot;project&quot; =&gt; &quot;projectname&quot;,
    //                    &quot;title&quot; =&gt; &quot;dropdown menu 1 title&quot;,
    //                    &quot;items&quot; =&gt; array (
    //                        array ( &quot;reportfile&quot; =&gt; &quot;report&quot; ),
    //                        array ( &quot;reportfile&quot; =&gt; &quot;anotherreport&quot; ),
    //                        )
    //                    ),
    //                array ( 
    //                    &quot;project&quot; =&gt; &quot;projectname&quot;,
    //                    &quot;title&quot; =&gt; &quot;dropdown menu 2 title&quot;,
    //                    &quot;items&quot; =&gt; array (
    //                        array ( &quot;reportfile&quot; =&gt; &quot;report&quot; ),
    //                        array ( &quot;reportfile&quot; =&gt; &quot;anotherreport&quot; ),
    //                        )
    //                    ),
    //            );


    // Run the report
	$q-&gt;execute();

	//ob_end_flush();
?&gt;
</pre></code></p>
<p>Taking the essential lines at a time
    :-</p>

<p><pre class="listing"><pre>
        error_reporting(E_ALL);
</pre></pre></p>
    <p>Sets full error reporting, which is useful when debugging reports - this can be turned off or commented out as required.</p>

<p><pre class="listing"><pre>
        date_default_timezone_set(@date_default_timezone_get())
</pre></pre></p>
    <p>The reporting engine works with dates and needs a system timezone to be set. If not it is forced to a UK timezone.</p>

<p><pre class="listing"><pre>
        ini_set(&quot;memory_limit&quot;,&quot;100M&quot;);
</pre></pre></p>
    <p>For more complex reports, more memory may be required than allowed by the existing PHP config. This allocates 100 Mb but can be changed or commented out as required.</p>

<p><pre class="listing"><pre>
        ini_set(&quot;max_execution_time&quot;,&quot;90&quot;);
</pre></pre></p>
    <p>For complex reports, some time may be needed to run them, this should allow enough time for most reports to run without the script exiting.</p>

<p><pre class="listing"><pre>
    require_once('reportico.php');
</pre></pre></p><p>Includes
    the reporting class that is responsible for all the capabilities of
    Reportico such as menus, report design, report criteria entry and output
    generation.</p>

<p><pre class="listing"><pre>
    $q = new reportico();
</pre></pre></p><p>Creates an instance of the
    reporting tool in variable $q.</p>

<p><pre class="listing"><pre>
    $q-&gt;allow_debug = true;
</pre></pre></p><p>Enables debug mode. When running a
    report, a debug list box will appear. The user can then get information
    about the database calls made while the report is being
    generated.</p><p><pre class="listing"><pre>
    $q-&gt;forward_url_get_parameters = &quot;&quot;;
</pre></pre></p><p>Specifies a list of URL GET parameters which are included in all invocations of this calling script and all links presented while running Reportico. 
This is useful when embedding Reportico within web frameworks that rely on parameters being used to control navigation around the site.
Specify in the form &lt;param1=value1&amp;param2=value2&gt;</p><p><pre class="listing"><pre>
    $q-&gt;execute($a-&gt;get_execute_mode(),true);
</pre></pre></p><p>Enters the reporting tool in the
    current mode whether MENU, PREPARE, MAINTAIN or EXECUTE. This is the mode
    that is provided on the URL command line. The default is PREPARE.</p><hr />

<p>For more detalis on all the configuration options see the next page 'Embedding Reportico in a Web Page'</p></span>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="33%" align="left" valign="top"><a href="../reportico/tutorial_reportico.structure.pkg.html">Prev</a></td>
<td width="34%" align="center" valign="top"><a href=
"../reportico/tutorial_reportico.manual.pkg.html">Up</a></td>
<td width="33%" align="right" valign="top"><a href=
"../reportico/tutorial_reportico.embedding.pkg.html">Next</a></td>
</tr>

<tr>
<td width="33%" align="left" valign="top">Reportico Installation Structure</td>
<td width="34%" align="center" valign="top">Reportico User Manual</td>
<td width="33%" align="right" valign="top">Embedding Reportico</td>
</tr>
</table>
        <div class="credit">
		    <hr />
		    Documentation generated on Mon, 09 Jun 2014 18:10:07 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>